package com.example.administrator.seniorplayer;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.example.administrator.seniorplayer.utilis.VideoIntent;
import com.example.administrator.seniorplayer.utilis.VideoViewPlayer;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.kk).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new VideoIntent(MainActivity.this, VideoViewPlayer.class);
                //intent.pathStartVideo();
                // intent.uriStartVideo("http://huiyi.qeebu.cn/teamin/Public/Uploads/information/5576b833ac235.mp4");
                startActivity(intent);
            }
        });

    }

}
